package com.bwie.es;

import com.bwie.pojo.Image;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

@Document(indexName = "es_stadium")
@Data
public class EsStadium {
    @Id
    @Field(type = FieldType.Integer)
    private Integer id;

    @Field(type = FieldType.Integer)
    private Integer typeId;

    @Field(type = FieldType.Text)
    private String stadiumPeople;

    @Field(type = FieldType.Text)
    private String stadiumOrder;

    @Field(type = FieldType.Text)
    private String stadiumName;

    @Field(type = FieldType.Double)
    private double stadiumPrice;

    @Field(type = FieldType.Double)
    private double stadiumCharity;

    @Field(type = FieldType.Integer)
    private Integer descriptionId;

    @Field(type = FieldType.Integer)
    private Integer userId;

    @Field(type = FieldType.Text)
    private String descriptionName;

    @Field(type = FieldType.Text)
    private String typeName;

    @Field(type = FieldType.Nested)
    private List<Image> imageList;

    @Field(type = FieldType.Text)
    private String username;

    @Field(type = FieldType.Text)
    private String roleName;

    @Field(type = FieldType.Text)
    private String stadiumMiao;
}
